package com.wy17113.model.service;

import java.sql.SQLException;
import java.util.List;

import com.wy17113.model.entity.ScoreRecord;
import com.wy17113.model.entity.User;

public interface IUserService {
	public User userLogin(String account,String password);
	public int getUserScoresById(String id);
	public void checkQianDao(ScoreRecord sr);
	
	public int checkUserIsQianDao(String id,String date);
	public int getUserinviteNum(String id);
	public void saveUser(User user);
	
	public int checkIsOneIpRegist(String fromId,String ip);
	public int checkAccountExist(String account);
	public void delete(int flag,String id) throws SQLException;
	
	public List<User> getAllUser(String uid,String account,int flag,String startTime,String endTime,int start,int count);
	public int getAllUserCounts(String uid,String account,int flag,String startTime,String endTime);
}
